<template>
	<view class="page-user" v-if="loading">
		<view class="top-box">
			<view class="head-box">
				<button class="images" open-type='chooseAvatar' @chooseavatar='chooseavatar'>
					<image :src="'https://yunchenbucket.oss-cn-qingdao.aliyuncs.com/'+userinfo.tx"
						style="border-radius: 50%;width: 100%;height: 100%;"></image>
				</button>
				<view class="name">
					{{userinfo.username||"登录"}}
				</view>
			</view>
		</view>
		<view class="complaint-box">
			<view class="title">
				我的投诉
			</view>
			<view class="complaint-list">
				<view class="complaint-item" v-for="(item,index) in replyList" :key="index" @click="jump(item,index)">
					<image :src="item.image" class="complaint-image" mode=""></image>
					<view class="complaint-text">
						{{item.name}}
					</view>
				</view>
			</view>
		</view>
		<view class="setting-box">
			<view class="setting-item" style="border-bottom: 1px solid  #EBEBEB;" v-for="(item,index) in list"
				:key="index" @click="jump(item,index)">
				<view class="icon">
					<image class="icon-img" :src="item.image" mode=""></image>
				</view>
				<view class="name">
					{{item.name}}
				</view>
				<view class="right-icon">
					>
				</view>
			</view>

		</view>
		<uni-popup ref="username" type="dialog">
			<uni-popup-dialog ref="inputClose" mode="input" title="修改昵称"  value="" placeholder="请输入昵称"
				@confirm="dialogInputConfirm"></uni-popup-dialog>
		</uni-popup>
		<uni-popup ref="mobile" type="dialog">
			<uni-popup-dialog ref="inputClose" mode="input" title="联系方式"  value="" placeholder="请输入联系方式"
				@confirm="dialogMobile"></uni-popup-dialog>
		</uni-popup>
	</view>
</template>
<script src="./page.js"></script>

<style scoped lang="scss">
	@import 'page.scss';
</style>